//
//  GBTick.m
//  GBUtilsTest
//
//  Created by wanglidong on 14-5-7.
//  Copyright (c) 2014年 GoldenBull. All rights reserved.
//

#import "GBTick.h"
#import<mach/mach_time.h>

@implementation GBTick

+ (uint64_t)milliSecond
{
    static mach_timebase_info_data_t info;
    if (info.denom == 0)
    {
        mach_timebase_info(&info);
    }

    uint64_t time = mach_absolute_time();
    uint64_t tick = time * info.numer / info.denom / 1000000LL;
    return tick;
}

@end
